package models;

import java.util.Date;

import javax.persistence.Id;

import com.googlecode.objectify.annotation.Indexed;
import com.googlecode.objectify.annotation.Unindexed;

public class UserModel {
	@Id private String username = "";
	
	@Unindexed private String fullname = "";
	
	@Indexed private int status = 0; //0-Inactive, 1-Pending, 2-Active
	
	@Unindexed private Date created = new Date();
	
	@Unindexed private Date expired = new Date();
	
	@Unindexed private int sex = 0; //0-male, 1-female

	@Unindexed private int role = 0; //0-user, 1-administrator
	
	@Unindexed private int linkFreeLimit = 10;
	
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getFullname() {
		return fullname;
	}

	public void setFullname(String fullname) {
		this.fullname = fullname;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public Date getExpired() {
		return expired;
	}

	public void setExpired(Date expired) {
		this.expired = expired;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public int getRole() {
		return role;
	}

	public void setRole(int role) {
		this.role = role;
	}

	public int getLinkFreeLimit() {
		return linkFreeLimit;
	}

	public void setLinkFreeLimit(int linkFreeLimit) {
		this.linkFreeLimit = linkFreeLimit;
	}
	
}